import request from '@/utils/request'

export function blogAdd(data) {
  return request({
    url: '/blogRoll/add',
    method: 'post',
    data
  })
}
export function blogEdit(data) {
  return request({
    url: '/blogRoll/edit',
    method: 'put',
    data
  })
}

export function blogGet(params) {
  return request({
    url: '/blogRoll/getList',
    method: 'get',
    params
  })
}

export function blogById(id) {
  return request({
    url: '/blogRoll/getId',
    method: 'get',
    params: {
      id
    }
  })
}

export function blogDel(id) {
  return request({
    url: '/blogRoll/del',
    method: 'delete',
    params: {
      id
    }
  })
}
